<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>



<div class="p_category">
	<h2>商品分类</h2>
	<c:set var="categoryInfo" value="${requestScope.parentCategory }"></c:set>
	<c:forEach items="${categoryInfo}" var="c">
		<dl>
			<dt class="dtt">
				<a href="${pageContext.request.contextPath }/PruductCateServlet?cate=parent&hpcId=${c.hpc_id}">${c.hpc_name}</a>
			</dt>
			<c:forEach items="${childCategory[c.hpc_id] }" var="category">
				<dd class="ddd">
					<a href="${pageContext.request.contextPath }/PruductCateServlet?cate=child&hpcId=${category.hpc_id }">${category.hpc_name }</a>
				</dd>
			</c:forEach>
		</dl>
	</c:forEach>
</div>

